/* 
 * File:   F09.h
 * Author: jcrada
 *
 * Created on 23 July 2011, 12:58 PM
 */

#ifndef JRV_F09_H
#define	JRV_F09_H

#include "ecb/base/Problem.h"

#include "ecb/function/Salomon.h"

namespace ecb {
    namespace jrv11 {

        class F09 : public Problem {
        private:
            Problem* salomon;
        public:

            F09(int dimensions)
            : Problem("F09", "Salomon", dimensions,
            -600, 600, true) {
                salomon = new Salomon;
            }

            ~F09() {
                delete salomon;
            }

            scalar f(const std::vector<scalar>& x) {
                return salomon->f(x);
            }
        };
    }
}

#endif	/* JRV_F09_H */

